var assert = require('assert');
var should = require('should');
var util = require('util');
var zlib = require('zlib');
var _ = require('lodash');
var modelUtil = require('../../app/util/modelUtil');
var mongoConnector = require('../../app/libs/mongodb/mongoConnector');
var bagSchema = require('../../app/schemas/bagSchema');
var Bag = mongoConnector().model('Bag');
var config = require('../config');

suite('测试modelUtil', function () {
    suite('测试getByRoleId', function () {
        test('获取数据成功', function (done) {
            modelUtil.getByRoleId(Bag, config.role_id, function () {
                done();
            });
        });
    });
});
